package GameEngine.Drawables.GameObjects;

import GameEngine.Drawables.IDrawable;

public class BlockLevel extends Band implements IDrawable {

	DreierBlock[] BL = new DreierBlock[100];

	public BlockLevel() {
		super(100);
		for (int i = 0; i < BL.length; i++) {
			BL[i] = new DreierBlock(i * 200, 200);
		}
	}

	@Override
	public void draw() {
		for (int i = 0; i < BL.length; i++) {
			// Ausblenden der aeusseren Bloecke
			if (BL[i].getPosx() > PosX - 200) {
				if (BL[i].getPosx() < PosX + 500) {
					BL[i].drawAt(PosX, PosY);
				}
			}
			
		}
	}
}
